<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.red{
				color: red;
			}
			.blue{
				color: blue;
			}
		</style>
	</head>
	<body>
		<h1>测试jquery中sibling的空号了里面的标签是不是能直接写选择器。</h1>
		<ul>
			<li class="test test_index">test test_index</li>
			<li class="test">2</li>
			<li class="test test_index">test test_index</li>
			<li class="test">4</li>
			<li class="test">5</li>
			<li class="test">6</li>
			<li class="test">7</li>
			<li class="test">8</li>
			<li class="test">9</li>
			<li class="test">0</li>
			<li class="test">11</li>
		</ul>
		<h2>看来是可以的！</h2>
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		$("li").on("click",function(){
			$(this).addClass("red").siblings(".test_index").addClass("blue");
		})
	</script>
</html>
